import { IsEmail, IsNotEmpty, IsOptional, MaxLength } from 'class-validator';

export class UpdateUserDto {
    @IsOptional()
    headPic?: string;

    @IsOptional()
    nickName?: string;

    @IsNotEmpty({ message: '邮箱不得为空' })
    @IsEmail({}, { message: '不是合法的邮箱格式' })
    email: string;

    captcha: string;
}
